package ch.hoth.java.joocal;

import java.util.Date;

public class Event {
	
	private String title;
	private Date startTime;
	private Date stopTime;
	private Date fullDay;
	private Status status;
	
	
	
	public Event(String title, Date startTime, Status status){
		this.title = title;
		this.status = status;
		this.startTime = startTime;
	}
	
	public Event(String title, Status status){
		this(title, new Date(), status);
	}
	
	public String getTitle(){
		return title;
	}
	
	public boolean isPublished(){
		boolean value = true;
		if (status == Status.NEW){
			value = false;
		}
		return value;
	}
	
	public Date getStartTime(){
		return startTime;
	}
	public Date getStopTime(){
		return stopTime;
	}

}
